package com.csc.spring;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;

public class App2 {

	public static void main(String [] args)
	{
		AbstractApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
		SpringHelloWorld obj = context.getBean(SpringHelloWorld.class);
		obj.hello();
		obj.getMessage();
		
		context.registerShutdownHook();
	}
}
